package com.jctrip.hotel.management.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Builder
@Data
@ApiModel(value = "获取授信信息接口-返回值")
public class GetAccountResult {
    @ApiModelProperty(value = "授信信息列表")
    private List<AccountInfo> records;

    @ApiModelProperty(value = "授信信息总数")
    private Long total;

    @ApiModelProperty(value = "当前页码")
    private Long current;

    @ApiModelProperty(value = "当前页面大小")
    private Long size;

    @ApiModelProperty(value = "共几页")
    private Long pages;

    @Builder
    @Data
    @ApiModel(value = "授信信息对象")
    public static class AccountInfo{
        @ApiModelProperty(value = "主键")
        private String id;

        @ApiModelProperty(value = "余额")
        private BigDecimal balance;

        @ApiModelProperty(value = "分销Id")
        private String sellerId;

        @ApiModelProperty(value = "分销商名称")
        private String sellerName;

        @ApiModelProperty(value = "分销类型(0=测试；1=自有；2=外部)")
        private Integer sellerType;

        @ApiModelProperty(value = "状态(0=关闭；1=正常)")
        private Integer status;
    }
}
